//
//  ChangePhoneImageCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/3/7.
//  Copyright © 2020 tao Tao. All rights reserved.
//

import UIKit

class ChangePhoneImageCell: UITableViewCell {
    
    @IBOutlet private weak var titleLabel: UILabel!
    
    @IBOutlet private weak var iconView: UIImageView!
    
    private var images = [
        UIImage(named: "idcard_main"),
        UIImage(named: "idcard_back"),
        UIImage(named: "idcard_holding")
    ]
    
    func configure(at indexPath: IndexPath, titles: [String], imgModels: [UploadImgModel]) {
        titleLabel.text = titles[indexPath.row]
        iconView.kf.setImage(with: URL(string: imgModels[indexPath.row].ShareThumbnailUrl ?? ""),
                             placeholder: images[indexPath.row])
    }
    
}
